<?php echo $this->fetch('header.html'); ?>
<div> 
<?php echo $this->fetch('koudai/nav.html'); ?>
<form method='post' action='<?php echo $this->_var['appadmin']; ?>?m=koudai&a=save'>
<input type='hidden' name='id' style='display:none;' value='<?php echo $this->_var['data']['id']; ?>' >
 <table class='table table-bordered' width='100%'>
  <tr><td width="100">名称：</td><td><input type='text' name='title' id='title' value='<?php echo $this->_var['data']['title']; ?>' >  
  <a href="<?php echo $this->_var['appkoudai']; ?>?m=login&a=admin&id=<?php echo $this->_var['data']['id']; ?>" target="_blank">去管理</a></td></tr>
  <tr><td>站点：</td><td><input type='text' name='siteid' id='siteid' value='<?php echo $this->_var['data']['siteid']; ?>' ></td></tr>
   <tr><td>起送价：</td><td><input type='text' name="qsjia" value='<?php echo $this->_var['data']['qsjia']; ?>' ></td></tr>
   <tr><td>送货时间：</td><td><input type='text' name="shsj" value='<?php echo $this->_var['data']['shsj']; ?>' >(分钟)</td></tr>
  <tr><td>营业开始：</td><td><input type='text' name='yystart' id='yystart' value='<?php if ($this->_var['data']['yystart']): ?><?php echo $this->_var['data']['yystart']; ?><?php else: ?>18:00<?php endif; ?>' onClick="WdatePicker({dateFmt:'HH:mm'})" ></td></tr>
  <tr><td>营业结束：</td><td><input type='text' name='yyend' id='yyend' value='<?php if ($this->_var['data']['yyend']): ?><?php echo $this->_var['data']['yyend']; ?><?php else: ?>23:59<?php endif; ?>' onClick="WdatePicker({dateFmt:'HH:mm'})"></td></tr>
  <tr><td>电话：</td><td><input type='text' name='telephone' id='telephone' value='<?php echo $this->_var['data']['telephone']; ?>' ></td></tr>
  <tr><td>昵称：</td><td><input type='text' name='nickname' id='nickname' value='<?php echo $this->_var['data']['nickname']; ?>' ></td></tr>
  <tr><td>地址：</td><td><input type="text" name="address" value="<?php echo $this->_var['data']['address']; ?>"></td></tr>
  <tr>
  	<td>公告:</td>
    <td><input type="text" name="gonggao" value="<?php echo $this->_var['data']['gonggao']; ?>" class="w98"></td>
  </tr>
  <tr>
  	<td>公告:</td>
    <td>
    	<input type="radio" name="ggopen" value="0" <?php if (! $this->_var['data']['ggopen']): ?> checked<?php endif; ?>>关闭
    	<input type="radio" name="ggopen" value="1" <?php if ($this->_var['data']['ggopen']): ?> checked<?php endif; ?>>开启
    </td>
  </tr>
  
  <tr><td>状态：</td>
  <td>
  
  <input type='radio' name='status'  value='2' <?php if ($this->_var['data']['status'] == 2): ?> checked<?php endif; ?> > 开业
  <input type='radio' name='status'  value='4' <?php if ($this->_var['data']['status'] != 2): ?> checked<?php endif; ?> > 关闭
  </td></tr>
  <tr><td>账户金额：</td><td><?php echo $this->_var['data']['money']; ?></td></tr> 
<tr><td></td><td><input type='submit' value='保存' class='btn btn-success'></td></tr> </table>
</form>
</div>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script>  
<?php echo $this->fetch('footer.html'); ?>